package com.wocai.jrt.orgadmin.investor.service.impl;

import java.util.List;

import javax.inject.Inject;
import javax.inject.Named;

import com.wocai.jrt.orgadmin.investor.dao.InvestorGroupDao;
import com.wocai.jrt.orgadmin.investor.model.InvestorGroup;
import com.wocai.jrt.orgadmin.investor.model.InvestorGroupBean;
import com.wocai.jrt.orgadmin.investor.service.spi.InvestorGroupService;
import com.vteba.service.generic.impl.MyBatisServiceImpl;
import com.vteba.tx.jdbc.mybatis.spi.BaseDao;

/**
 * 投资人组别相关的service业务实现。
 * @author yinlei
 * @date 2015-12-4 9:18:56
 */
@Named
public class InvestorGroupServiceImpl extends MyBatisServiceImpl<InvestorGroup, InvestorGroupBean, String> implements InvestorGroupService {
	// 添加了方法后，记得改为private
	protected InvestorGroupDao investorGroupDao;
	
	@Override
	@Inject
	public void setBaseDao(BaseDao<InvestorGroup, InvestorGroupBean, String> investorGroupDao) {
		this.baseDao = investorGroupDao;
		this.investorGroupDao = (InvestorGroupDao) investorGroupDao;
	}

	@Override
	public List<InvestorGroup> getSelectedInvestorGroup(InvestorGroup investorGroup) {
		return investorGroupDao.getSelectedInvestorGroup(investorGroup);
	}
}
